import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import '@/assets/css/global.scss' // 引入全局样式
/* tailwind.css 库的引入 */
import 'uno.css'
// import '@/assets/mock/mockData.js' // 引入mock 文件

const app = createApp(App)

/* *********** 引入 pinia ************ */
import { setupStore } from '@/stores';
setupStore(app)
// app.use(createPinia())
app.use(router)

/* *********** 引入 elements icons ************ */
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
